#include "http_server.hpp"
#include <unistd.h>
#include <cstdlib>

void Usage(std::string proc) {
    std::cout << "Usage: " << "\n\t" << proc << " port" << std::endl;
}

int main(int argc, char *argv[]) {
    if (argc != 2) {
        Usage(argv[0]);
        exit(2);
    }
    ns_httpServer::HttpServer http_server(atoi(argv[1]));
    http_server.initHttpServer();
    http_server.Loop();
    return 0;
}
